function bvqxfile_setscont(l, ac)
% BVQXfile::<PRIVATE>::setscont  - set super-struct of object

% Version:  v0.7b
% Build:    7082923
% Date:     Aug-29 2007, 11:08 PM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

% global storage
global bvqxclup;
global bvqxcont;

% force one element only
if nargin ~= 2 || ...
    numel(l) ~= 1 || ...
    l == 1
    error( ...
        'BVQXfile:BadArgument', ...
        'Invalid object dim.' ...
    );
end

% set super-struct content
try
    bvqxcont(bvqxclup == l) = ac;
catch
    error( ...
        'BVQXfile:LookupError', ...
        'Error looking up object with handle %s or bad cont.', ...
        hxdouble(l) ...
    );
end
